﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace EasyHome.Models
{
    public class TablaAdicional
    {
        [Key]
        public Guid id { get; set; }

        [Required]
        [ForeignKey("TablaDato")]
        [Display(Name = "Dato")]
        public Guid TablaDatoId { get; set; }
        [Required]
        public string Descripcion { get; set; }
        [Required]
        public int Numero { get; set; }
        [Display(Name = "Texto")]
        public string AdicionalString { get; set; }
        [Display(Name = "Decimal")]
        public Nullable<decimal> AdicionalDecimal { get; set; }
        [Display(Name = "True/False")]
        public Nullable<Boolean> AdicionalBoolean { get; set; }
        [Display(Name = "Fecha")]
        public Nullable<DateTime> AdicionalDate { get; set; }

        public virtual TablaDato TablaDato { get; set; }
    }
}